<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>常熟领军人才管理平台提醒您</title>
	</head>
	<body>
<?php
/**
* Simple example script using PHPMailer with exceptions enabled
* @package phpmailer
* @version $Id$
*/
require 'class.phpmailer.php';

	try {
		$title=$_GET['title'];
		$contentemail = $_GET['email'];
		$email =base64_decode($_GET['email']);// $_GET['email'];
		if($_GET['password']!=""){
			$password=base64_decode($_GET['password']);
		}else{
			$password="123456";
		}
		$pagename = $_GET['pagename'];
		$description = $_GET['description'];
		$server = $_SERVER["SERVER_NAME"];
		$mail = new PHPMailer(true); //New instance, with exceptions enabled
		$body             = file_get_contents('http://'.$server.'/csljrc/phpmailer/'.$pagename.'.php?description='.$description.'&title='.$title.'&email='.$contentemail.'&password='.$password);
		$body             = preg_replace('/\\\\/','', $body); //Strip backslashes
	
		$mail->IsSMTP();                           // tell the class to use SMTP
		$mail->SMTPAuth   = true;                  // enable SMTP authentication
		$mail->Port       = 25;                    // set the SMTP server port
		$mail->Host       = "smtp.163.com"; // SMTP server
		$mail->Username   = "kustp_cs@163.com";     // SMTP server username
		$mail->Password   = "k123456";            // SMTP server password
	
		$mail->AddReplyTo("kustp_cs@163.com","常熟领军人才");
	
		$mail->From       = "kustp_cs@163.com";
		$mail->FromName   = "常熟领军人才";
	
		$mail->AddAddress($email);
	
		$mail->Subject  = "常熟领军人才管理平台提醒您";
	
		$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
		$mail->WordWrap   = 80; // set word wrap
		$mail->CharSet = "UTF-8";
		$mail->MsgHTML($body);
		$mail->IsHTML(true); // send as HTML
		$mail->Send();
		echo 'Message has been sent.';
	} catch (phpmailerException $e) {
		echo $e->errorMessage();
	}

?>
</body>
</html>